package com.ruiben.mall.mapper;


import com.ruiben.mall.pojo.UserOrder;
import com.ruiben.mall.utils.MyMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserOrderMapper extends MyMapper<UserOrder> {

    List<UserOrder> getUserOrderList();

    List<UserOrder> getUserOrderListByStatus(@Param("orderStatus") int orderStatus,@Param("userId") String userId);

    UserOrder getOrderDetailById(@Param("id") String id,@Param("status") int status);


    UserOrder getOrderDetail(@Param("id") String id);


    List<UserOrder> getAllUserOrderListForUserId(String userId);

}